package cn.com.qingz.core.constantes;

/**
 * @ClassName: SystemConstantes
 * @Description: (系统使用常量定义)
 * @date 2013-6-27 下午4:11:49
 * 
 */
public interface SystemConstantes {
	
	//系统参数代码
    String SYS_PARAM = "sysparam";
    
    String IMAGE_UPLOAD_URL = "IMAGE_UPLOAD_URL";
	String FILE_UPLOAD_URL = "FILE_UPLOAD_URL";
    
		
	String SUCCESS = "0000";
	String SUCCESS_MSG = "成功";
	
	String ERROR = "0001";
	String ERROR_MSG = "失败";	
	String ISEXIST = "0003";//已存在
	
	String PARAM_ERROR = "0002";
	String PARAM_ERROR_MSG = "参数错误或者参数不完整";	

	String NO_PERMISSION = "UP01";
	String NO_PERMISSION_MSG = "无接口访问权限";
	
	String UE01 = "UE01";
	String UE01_MSG = "未知接口异常";
	
	String RESULT_SESSION_TIMEOUT = "301";
	String MSG_RESULT_SESSION_TIMEOUT = "令牌失效，请重新登录";

	String RESULT_EXP = "300";
	String MSG_RESULT_EXP = "程序内部异常";

	String PARAMS_VALUE_NULL = "400";
	String MSG_PARAMS_VALUE_NULL = "值不需为空";

	String FILE_TYPE = "402";
	String MSG_FILE_TYPE = "文件类型错误";

	String TASK_NO_EXISTS = "403";
	String MSG_TASK_NO_EXISTS = "任务不存在";

	String REMOVE_NOT_USER_OWN = "501";
	String REMOVE_NOT_USER_OWN_MSG = "自己不能删除自己";
	
	String REMOVE_NOT_USER_DISABLE = "503";
	String REMOVE_NOT_USER_DISABLE_MSG = "自己不能禁用自己";

	String REMOVE_NOT_USER_ENABLE = "504";
	String REMOVE_NOT_USER_ENABLE_MSG = "自己不能启用自己";
	
	String REMOVE_NOT_ROLE_OWN = "502";
	String REMOVE_NOT_ROLE_OWN_MSG = "当前角色不能删除自己所属的角色";
	
	
	String LOGIN_TYPE="505";
	String LOGIN_STYPE_MSG="用户名或密码错误，请重新登录！";

	String EXIT_ROLE="506";
	String EXIT_ROLE_MSG= "可能存在关联用户，无法删除这个角色";
}
